import path from 'path'
const DB_URL = 'mongodb://use:use@localhost:27017/cc'

const REDIS = {
  host: '127.0.0.1',
  port: 6379,
  password: 'Huang@996',
}

const AppID = 'wx1d2998be3d0402ff'
const AppSecret = '1d2777f89f35f7b6798f7abc08773bf9'

const JWT_SECRET =
  'a&*38QthAKuiRwISGLotgq^3%^$zvA3A6Hfr8MF$jM*HY4*dWcwAW&9NGp7*b53!'
const baseUrl =
  process.env.NODE_ENV === 'production'
    ? 'http:/www.mfh.com'
    : 'http://localhost:8080'
const uploadPath =
  process.env.NODE_ENV === 'production'
    ? '/app/public'
    : path.join(path.resolve(__dirname), '../../public')
export default {
  DB_URL,
  REDIS,
  JWT_SECRET,
  baseUrl,
  uploadPath,
  AppID,
  AppSecret,
}
